<?php
function is_login(){
    $uid = $_COOKIE["uid"];
    $passwd = $_COOKIE["passwd"];

    if (!$uid || !$passwd) {
        return false;
    }

    return true;
}

function check_auth($uid, $passwd) {
	$userinfo = array();
	$userinfo['uid'] = $uid;
	$userinfo['passwd'] = $passwd;

	return $userinfo;
}
?>
